<template>
  <div class="zhengtirendu3 base-background-img">
    <div class="yi" @click="playFun(yi)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/3/yi.png">
    </div>
    <div class="wu" @click="playFun(wu)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/3/wu.png">
    </div>
    <div class="yu" @click="playFun(yu)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/3/yu.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'zhengtirendu3',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        yi: {
          url: 'static/youxiao/pdf/zhengtirendu/yi.pdf',
          data: []
        },
        wu: {
          url: 'static/youxiao/pdf/zhengtirendu/wu.pdf',
          data: []
        },
        yu: {
          url: 'static/youxiao/pdf/zhengtirendu/yu.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.zhengtirendu3 {
  background: url(~@/assets/youxiaoxianjie/zhengtirendu/3/bg.png);
}
.zhengtirendu3 > div {
  position: absolute; 
}
.yi {
  top: 245px;
  left: 230px;
}
.wu {
  top: 300px;
  left: 500px;
}
.yu {
  top: 292px;
  left: 851px;
}
</style>
